package auction.model;

import java.math.BigDecimal;

public class Bid{
	private Long bid;
	private double price;
	private BigDecimal amount=new BigDecimal(0);
	
	private Item item;
	private User bidder;
	
	public Bid(){
	    
	}
	
	public Bid(double price){
	    this.price=price;
	}
	
	public Long getBid(){
		return bid;
	}
	public void setBid(Long i){
		bid=i;
	}
	
	public void setItem(Item y){
		item=y;
	}
	public Item getItem(){
		return item;
	}

    /**
     * @return the price
     */
    public double getPrice() {
        return price;
    }

    /**
     * @param price the price to set
     */
    public void setPrice(double price) {
        this.price = price;
    }

	public User getBidder() {
		return bidder;
	}

	public void setBidder(User bidder) {
		this.bidder = bidder;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
}